package guyubao.com.entity.vo.request;

import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 修改消息渠道请求
 * @author wxa
 */
@Data
@Schema(description = "修改消息渠道请求")
public class MessageChannelVoRequest {
    @Length(min=1,max=20)
    String uid;
    @Pattern(regexp = "^(mail)|(pushplus)$")
    String name;
    @Length(min=1,max=100)
    String json;
    @Length(min=6,max=6)
    String code;
}
